import { Desc, Entity, PrimaryUuid, Title, Image, CreateDate, UpdateDate, CoupondCategoryPId } from '@sker/core'
@Entity({ name: 'coupon_category' })
export class CouponCategory {
    @PrimaryUuid({
        primaryKeyConstraintName: 'PK_COUPON_CATEGORY_ID'
    })
    id: string;

    @Title({ label: '标题' })
    title: string;

    @Desc({ label: '简介', nullable: true, default: '' })
    desc: string;

    @Image({ nullable: true, default: '' })
    cover: string;

    @CoupondCategoryPId({ label: '上级分类', nullable: true })
    pid!: string;

    @CreateDate()
    date_date: Date;

    @UpdateDate()
    update_date: Date;
}